package com.worthtech.billportal.service.imp;

import java.sql.SQLException;
import java.util.List;

import com.worthtech.billportal.bean.CsAppTerminal;
import com.worthtech.billportal.bean.CsBakTerminal;
import com.worthtech.billportal.bean.CsBillMsg;
import com.worthtech.billportal.bean.CsBillShop;
import com.worthtech.billportal.bean.CsCtrlUser;
import com.worthtech.billportal.bean.CsDicCommbank;
import com.worthtech.billportal.bean.CsLiqParaLw;
import com.worthtech.billportal.bean.CsMgrCode;
import com.worthtech.billportal.bean.CsRcvAccountInfo;
import com.worthtech.billportal.bean.CsSysTerminal;
import com.worthtech.billportal.bean.PepCustinfo;
import com.worthtech.billportal.bean.PosCustinfo;
import com.worthtech.billportal.bean.SamcardInfo;
import com.worthtech.billportal.bean.WtCreditAccountInfo;
import com.worthtech.billportal.bean.WtCreditMerInfo;
import com.worthtech.billportal.bean.WtMgrEncKey;
import com.worthtech.billportal.bean.WtMgrMerInfo;
import com.worthtech.billportal.bean.WtRcvAccountInfo;
import com.worthtech.billportal.bean.WtTermInfo;
import com.worthtech.billportal.dao.SaminfoDAO;
import com.worthtech.billportal.service.SaminfoService;
import com.worthtech.billportal.web.session.UserSession;

public class SaminfoServiceImp implements SaminfoService{
	
	private SaminfoDAO saminfoDAO;
	public SaminfoDAO getSaminfoDAO() {
		return saminfoDAO;
	}
	
	public void save(Object obj){
		this.getSaminfoDAO().save(obj);
	}
	public void delete(Object obj){
		this.getSaminfoDAO().delete(obj);
	}
	public void save(CsDicCommbank c){
		this.saminfoDAO.save(c);
	}
	public void delete(CsDicCommbank c){
		this.saminfoDAO.delete(c);
	}
	public void setSaminfoDAO(SaminfoDAO saminfoDAO) {
		this.saminfoDAO = saminfoDAO;
	}
	public void delete(CsSysTerminal c){
		this.getSaminfoDAO().delete(c);
	}
	public void delete(CsAppTerminal c){
		this.getSaminfoDAO().delete(c);
	}
	public void save(PepCustinfo p){
		this.getSaminfoDAO().save(p);
	}
	public void save(WtTermInfo w){
		this.getSaminfoDAO().save(w);
	}
	public String getBillID(){
		return this.getSaminfoDAO().getBillID();
	}
	public void updateUser(CsCtrlUser u){
		this.getSaminfoDAO().updateUser(u);
	}
	public void delete(CsMgrCode c){
		this.getSaminfoDAO().delete(c);
	}
	public void save(CsBillShop c){
		this.getSaminfoDAO().save(c);
	}
	public void delete(CsBillShop c){
		this.getSaminfoDAO().delete(c);
	}
	public void save(CsLiqParaLw c){
		this.getSaminfoDAO().save(c);
	}
	public void update(CsLiqParaLw c){
		this.getSaminfoDAO().update(c);
	}
	public void delete(CsLiqParaLw c){
		this.getSaminfoDAO().delete(c);
	}
	public void save(CsRcvAccountInfo w){
		this.getSaminfoDAO().save(w);
	}
	public void delete(CsRcvAccountInfo w){
		this.getSaminfoDAO().delete(w);
	}
	public List getListByHQL(String tableName,int startPage,int perNo,String orderby){
		return this.getSaminfoDAO().getListByHQL(tableName,startPage,perNo,orderby);
	}
	public String getCount(String tableName, String condition) {
		return this.getSaminfoDAO().getCount(tableName, condition);
	}
	public void updateBak(CsBakTerminal c){
		this.getSaminfoDAO().updateBak(c);
	}
	public List getBakbySql(String sql){
		return this.getSaminfoDAO().getBakbySql(sql);
	}
	public void delCustInfo(PepCustinfo pc){
		this.getSaminfoDAO().delCustInfo(pc);
	}
	public void delWtTermInfo(WtTermInfo wt){
		this.getSaminfoDAO().delWtTermInfo(wt);
	}
	public void updateWt (WtTermInfo c){
		this.getSaminfoDAO().updateWt(c);
	}
	public boolean delSAM(String sam,String phone) {
		return this.getSaminfoDAO().delSAM(sam,phone);
	}
	public String getSeqID(String tablename){
		return this.getSaminfoDAO().getSeqID(tablename);
	}
	public String[] getSamList(){
		return this.getSaminfoDAO().getSamList();
	}
	public List getMenuList() {
		return this.getSaminfoDAO().getMenuList();
	}
	public void update(CsBillMsg c){
		this.getSaminfoDAO().update(c);
	}
	public void delete(CsBillMsg c){
		this.getSaminfoDAO().delete(c);
	}
	public void save(CsBillMsg c){
		this.getSaminfoDAO().save(c);
	}
	public boolean saveSamPhone(WtTermInfo wt){
		return this.getSaminfoDAO().saveSamPhone(wt);
	}
	public String executeSQL(String sql) {
		// TODO Auto-generated method stub
		return this.getSaminfoDAO().executeSQL(sql);
	}
	
	public boolean delAct(String phone){
		return this.getSaminfoDAO().delAct(phone);
	}
	
	public boolean saveAct(PepCustinfo pc){
		return this.saminfoDAO.saveAct(pc);
	}
	
	public boolean updateAct(PepCustinfo pc){
		return this.saminfoDAO.updateAct(pc);
	}
	public boolean updatePhone(WtTermInfo w,String key){
		return this.saminfoDAO.updatePhone(w, key);
	}
	
	public boolean isExt(String key){
		return this.saminfoDAO.isExt(key);
	}
	public boolean isOk(String key){
		return this.saminfoDAO.isOk(key);
	}
	public void updateSys(CsSysTerminal c){
		this.saminfoDAO.updateSys(c);
	}
	
	public void updateApp(CsAppTerminal c){
		this.saminfoDAO.updateApp(c);
	}
	public void savaSys(CsSysTerminal c){
		this.saminfoDAO.savaSys(c);
	}
	public void saveApp(CsAppTerminal c){
		this.saminfoDAO.saveApp(c);
	}
	public void save(WtRcvAccountInfo w ){
		this.saminfoDAO.save(w);
	}
	public void update(WtRcvAccountInfo w ){
		this.saminfoDAO.update(w);
	}
	public void delete(WtRcvAccountInfo w ){
		this.saminfoDAO.delete(w);
	}
	public void delete(WtTermInfo w){
		this.saminfoDAO.delete(w);
	}
	public void delete(PepCustinfo p ){
		this.saminfoDAO.delete(p);
	}
	public void save (WtMgrEncKey w ){
		this.saminfoDAO.save(w);
	}
	public void save(WtMgrMerInfo w){
		this.saminfoDAO.save(w);
	}
	public void update(WtMgrEncKey w){
		this.saminfoDAO.update(w);
	}
	public void update(WtMgrMerInfo w){
		this.saminfoDAO.update(w);
	}
	public void delete(WtMgrEncKey w){
		this.saminfoDAO.delete(w);
	}
	public void delete(WtMgrMerInfo w){
		this.saminfoDAO.delete(w);
	}
	public void update(CsMgrCode c){
		this.saminfoDAO.update(c);
	}
	public void save(CsMgrCode c){
		this.saminfoDAO.save(c);
	}
	public void saveSamasJiju(SamcardInfo s) throws SQLException {
		this.getSaminfoDAO().saveSamasJiju(s);
	}
	public String MaxPOSnum(String mercode) {
		return this.getSaminfoDAO().MaxPOSnum(mercode);
	}
	public int changeTERM(String id){
		return this.getSaminfoDAO().changeTERM(id);
	}

	public void updatewtc(WtCreditMerInfo wtc) {
		this.getSaminfoDAO().updatewtc(wtc);
	}

	public void delete(WtCreditMerInfo wtc) {
		this.getSaminfoDAO().delete(wtc);
	}

	public String selDistinctTerm(String orgcode) {
		return this.getSaminfoDAO().selDistinctTerm(orgcode);
	}

	public void delCreditAcc(WtCreditAccountInfo wtc) {
		this.getSaminfoDAO().delCreditAcc(wtc);
	}

	public void updateCreditAcc(WtCreditAccountInfo wtc) {
		this.getSaminfoDAO().updateCreditAcc(wtc);
	}

	public String selDistinctAccTerm() {
		return this.getSaminfoDAO().selDistinctAccTerm();
	}

	public void saveAcc(WtCreditAccountInfo wtc) {
		this.getSaminfoDAO().saveAcc(wtc);
	}

	public String quitCheck(CsAppTerminal ca, UserSession us) {
		return this.getSaminfoDAO().quitCheck(ca,  us);
	}

	public boolean updatePoscust(PosCustinfo pc) {
		return this.getSaminfoDAO().updatePoscust(pc);
	}

	public boolean saveObjbyList(List<String> list) {
		return this.getSaminfoDAO().saveObjbyList(list);
	}
}
